import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '/page/index/index.dart';
import '/page/login/login.dart';
import '/page/firstLauch/launchPage.dart';
import '/page/demo/formDemo.dart';

//配置路由
class RouteConfig {
  //首屏加载页
  static final String launchPage = "/launchPage";

  ///主页面
  static final String main = "/index";

  ///登录页
  static final String login = "/login";

  //表单页测试

  static final String formDemo = "/formDemo";

  ///别名映射页面
  static final List<GetPage> getPages = [
    GetPage(name: launchPage, page: () => LaunchPage()),
    GetPage(name: main, page: () => IndexPage()),
    GetPage(
      name: login,
      page: () => Login(),
      transition: Transition.downToUp,
    ),
    GetPage(name: formDemo, page: () => FormDemoPage()),
  ];
}
